package com.yuner.yunMall.controller;

import com.yuner.yunMall.feign.LoginApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Seven-Liu
 * @date 2022-05-20
 */
@RestController
@RequestMapping(value = "/consumerLogin")
public class ConsumerLogIn {

    @Autowired
    public LoginApi loginApi;

    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String providerLogin() {
        return loginApi.feign1();
    }

}
